package com.citasgoo.admin.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashMap;

public class SysEmail implements Serializable {
    /**
     * 编号
     */

    private Integer id;

    /**
     * 邮件代码
     */
    private String emailNo;

    /**
     * 邮件描述
     */
    private String name;

    /**
     * 邮件标题
     */
    private String title;

    /**
     * 创建时间
     */
    private String createName;

    /**
     * 创建者
     */
    private Date createTime;

    /**
     * 上一次更新时间
     */
    private String lastModifiedName;

    /**
     * 上一次更新者
     */
    private Date lastModifiedTime;

    /**
     * 预留域1--是否能删除
     */
    private String reservedField1;

    /**
     * 预留域2--是否对外开放
     */
    private String reservedField2;

    /**
     * 预留域3
     */
    private String reservedField3;

    /**
     * 邮件内容
     */
    private String context;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmailNo() {
        return emailNo;
    }

    public void setEmailNo(String emailNo) {
        this.emailNo = emailNo == null ? null : emailNo.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName == null ? null : createName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getLastModifiedName() {
        return lastModifiedName;
    }

    public void setLastModifiedName(String lastModifiedName) {
        this.lastModifiedName = lastModifiedName == null ? null : lastModifiedName.trim();
    }

    public Date getLastModifiedTime() {
        return lastModifiedTime;
    }

    public void setLastModifiedTime(Date lastModifiedTime) {
        this.lastModifiedTime = lastModifiedTime;
    }

    public String getReservedField1() {
        return reservedField1;
    }

    public void setReservedField1(String reservedField1) {
        this.reservedField1 = reservedField1 == null ? null : reservedField1.trim();
    }

    public String getReservedField2() {
        return reservedField2;
    }

    public void setReservedField2(String reservedField2) {
        this.reservedField2 = reservedField2 == null ? null : reservedField2.trim();
    }

    public String getReservedField3() {
        return reservedField3;
    }

    public void setReservedField3(String reservedField3) {
        this.reservedField3 = reservedField3 == null ? null : reservedField3.trim();
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context == null ? null : context.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", emailNo=").append(emailNo);
        sb.append(", name=").append(name);
        sb.append(", title=").append(title);
        sb.append(", createName=").append(createName);
        sb.append(", createTime=").append(createTime);
        sb.append(", lastModifiedName=").append(lastModifiedName);
        sb.append(", lastModifiedTime=").append(lastModifiedTime);
        sb.append(", reservedField1=").append(reservedField1);
        sb.append(", reservedField2=").append(reservedField2);
        sb.append(", reservedField3=").append(reservedField3);
        sb.append(", context=").append(context);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public LinkedHashMap<String, Serializable> pkValueMap() {
        LinkedHashMap<String, Serializable> map = new LinkedHashMap<String, Serializable>();
        map.put("id", id);
        return map;
    }
}